package cn.bone.motan.common.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by MD-01 on 2017/3/14.
 */
public class TreeResult {

    private String type;    //任务:task,路线:route,报警:alarm
    private int isLeaf;     //是否叶子节点(0:否,1:是)
    private List<Branch> branches = new ArrayList<>();

    //非叶子节点的显示信息
    public static class Branch{
        private String name;    //名称
        private Integer count;  //数量
        private String sign;    //标记

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }
    }

    //任务叶子节点显示的信息
    public static class TaskDetail{
        String url;             //访问地图的url
        String routeName;       //线路名称
        String empName;         //执行人员
        String taskState;       //任务状态

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getRouteName() {
            return routeName;
        }

        public void setRouteName(String routeName) {
            this.routeName = routeName;
        }

        public String getEmpName() {
            return empName;
        }

        public void setEmpName(String empName) {
            this.empName = empName;
        }

        public String getTaskState() {
            return taskState;
        }

        public void setTaskState(String taskState) {
            this.taskState = taskState;
        }
    }

    //线路叶子节点显示的信息
    public static class RouteDetail{
        private String url;
        private String routeName;
    }
}
